package org.ssmd3.service.impl;

import org.springframework.stereotype.Service;
import org.ssmd3.dao.UsersMapper;
import org.ssmd3.pojo.Users;
import org.ssmd3.service.UsersService;

import javax.annotation.Resource;
import java.util.List;
@Service("usersService")
public class UsersServiceImpl implements UsersService {
    @Resource
    UsersMapper usersMapper;


    @Override
    public Users getOneUsers(String name) {
        return usersMapper.getOneUsers(name);
    }

    @Override
    public List<Users> getAllusersList() {
        return usersMapper.getAllusersList();
    }

    @Override
    public int update(Users users) {
        return usersMapper.update(users);
    }

    @Override
    public int getRecordCount(Users users) {
        return usersMapper.getRecordCount(users);
    }


    @Override
    public List<Users> getUsersByPage(Users users) {
        return usersMapper.getUsersByPage(users);
    }
}
